<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="如何查询TDSQL数据节点是否已安装mysql服务">
<meta name="product" content="">
<meta name="DC.Relation" scheme="URI" content="tdsql_gud_086.html">
<meta name="prodname" content="">
<meta name="version" content="">
<meta name="brand" content="">
<meta name="DC.Publisher" content="20250306">
<meta name="prodname" content="csbs">
<meta name="documenttype" content="usermanual">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="tdsql_gud_093">
<meta name="DC.Language" content="zh-cn">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>如何查询TDSQL数据节点是否已安装mysql服务</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="tdsql_gud_093"></a><a name="tdsql_gud_093"></a>

<h1 class="topictitle1">如何查询TDSQL数据节点是否已安装mysql服务</h1>
<div><div class="section"><h4 class="sectiontitle">操作步骤</h4><ol><li><span>使用PuTTY工具通过<strong>root</strong>用户登录TDSQL数据节点。</span></li><li><span>执行以下命令，查询是否已安装mysql服务。</span><p><pre class="screen">ps -ef | grep mysql | grep <em>实例端口</em></pre>
<div class="note"><img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span><div class="notebody"><p id="tdsql_gud_093__tdsql_gud_016_p0531123013256">命令中的<em id="tdsql_gud_093__tdsql_gud_016_i182744371259">实例端口</em>请根据赤兔管理台“实例管理”界面选择对应的实例后，进入“DB监控”界面获取到的实际值替换。</p>
</div></div>
<p>示例：</p>
<pre class="screen">ps -ef | grep mysql | grep <em>4007</em></pre>
<p>当回显类似如下信息时，则表示已安装了mysql服务。否则，表示未安装mysql服务。</p>
<p><span><img src="zh-cn_image_0000002164818986.png"></span></p>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>父主题：</strong> <a href="tdsql_gud_086.html">常见问题</a></div>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">版权所有 &copy; 华为技术有限公司</div></body>
</html>